<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>物料管理-添加产品</title>
<link href="/rating/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="/rating/Public/admin/js/jquery.js"></script>

<link href="/rating/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/rating/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/rating/Public/admin/js/select-ui.min.js"></script>
<script src="/rating/Public/layer/layer.js"></script>

<link href="/rating/Public/validform/Validform.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/rating/Public/validform/Validform_v5.3.2.js"></script>
<script type="text/javascript" src="/rating/Public/validform/Validform_Datatype.js"></script>
<script>
$(document).ready(function(e) {
    $("#role,#level").uedSelect({
		width : 345			  
	});
});
</script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('industry/index');?>">行业管理</a></li>
			<li><a href="#">快速添加</a></li>
		</ul>
    </div>
    
    <div class="formbody">
    
		<div class="formtitle"><span>添加行业</span></div>
 
		<form name="myform" id="myform" action="<?php echo U('product/addyiji');?>" method="post">
			<ul class="forminfo">
				<li><label>行业名称</label><input name="info[indus_title]" type="text" class="dfinput" datatype="*" errormsg="箱号不能为空！" value="<?php echo ($sncode); ?>" ><i class="Validform_checktip"></i></li>
				
				<li><label>热门程度</label>
					<div class="vocation">
						<select id="role" name="info[indus_hot]" datatype="*" errormsg="不能为空" >
							<option value="">请选择</option>
							<?php if(is_array($admininfo)): $i = 0; $__LIST__ = $admininfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($data["admin_id"]); ?>"><?php echo ($data["realname"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
					</div>
					<i class="Validform_checktip"></i>
				</li>

				<li><label>程度分值</label><input name="info[indus_score]"   type="text" class="dfinput" datatype="*" errormsg="箱号不能为空！" maxlength="20" /><i class="Validform_checktip"></i></li>
				<li><label>是否开启</label>
					<div class="vocation">
						<select id="role" name="info[indus_isopen]" datatype="*" errormsg="不能为空">
							<option value="">请选择</option>
							<option value="1">开启</option>
							<option value="2">关闭</option>
						</select>
					</div>
					<i class="Validform_checktip"></i>
				</li>
				
				<li><label>行业管理员</label><input readonly  value="<?php echo ($admin["assessor"]); ?>" name="info[indus_isopen]" id="indus_isopen" type="text" class="dfinput"  style="float:left;margin-bottom:10px;"/><a style="background: url(../images/toolbg.gif) repeat-x;line-height: 33px; height: 33px; border: solid 1px #d3dbde; float: left; border-radius: 3px; behavior: url(js/pie.htc);cursor: pointer;padding:0px 10px;float:left;margin-left:5px;" 
				href='javascript:evaluate();'>选择</a></li> 
				<li><label>&nbsp;</label><input type="submit" class="btn" value="确认保存"/></li>
			</ul>
		</form>
    
    </div>

	<script>
	$(function(){
		$("#myform").Validform({
			tiptype:2
			// tiptype:function(msg,o,cssctl){
			// 	var objtip=o.obj.siblings(".Validform_checktip");
			// 	cssctl(objtip,o.type);
			// 	objtip.text(msg);
			}
		});
	}); 
	</script>
	<script type="text/javascript">
 
	 //弾层
		function evaluate(){
			layer.open({  
			type: 2, 
            title: '评价员选择',			
			maxmin: true,
            shadeClose: true, //点击遮罩关闭层
			area : ['720px' , '520px'],
			content: "<?php echo U('industry/set_evaluate');?>"
		});  
	}
</script>
</body>

</html>